package tgc.edu.examxy.custom.dict.entity;

import java.util.UUID;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import org.springframework.data.annotation.CreatedBy;

import tgc.edu.examxy.custom.BaseEntity;

/***
 * 数据字典——————数据
 * @author 936642284
 *
 */
@Entity
public class SystemData extends BaseEntity<UUID>{
	/** 名称 **/ 
	private String name;
	/** 代码状态 **/  
	private String code;
	/** 顺序 **/
	private int sort;
	/** 数据字典 字典 **/
	private SystemDictionaries systemDictionaries;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	@ManyToOne
	@CreatedBy
	public SystemDictionaries getSystemDictionaries() {
		return systemDictionaries;
	}
	public void setSystemDictionaries(SystemDictionaries systemDictionaries) {
		this.systemDictionaries = systemDictionaries;
	}
	
	
}
